#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
void f(char arr[], int sz, int n)
{
	int a = 0;
	for (a = 0; a < n; a++)
	{
		char tem = arr[0];
		int j = 0;
		for (j = 0; j < sz - 1; j++)
		{
			arr[j] = arr[j + 1];
		}
		arr[sz - 1] = tem;
	}
	
}
int main()
{
	char arr[] = "ABCDEFGHI";
	int n = 0;
	scanf("%d", &n);
	f(arr, strlen(arr), n);
	printf(arr);
	return 0;
}